package com.deep.seata.mapper;


import com.deep.seata.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@Mapper
public interface AccountMapper {
    Account selectByUserId(Long userId);

    int decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}